#ifndef TEAM_H
#define TEAM_H
#include <QString>
#include <QList>
#include "player.h"
#include "dbconnect.h"
#include <QVector>
//#include <QtSql/QSqlQuery>



class Team
{
public:
    Team();
    ~Team();
    QString getName();
    void setName(QString inputName);
    int getWins();
    void setWins(int inputWins);
    int getLosses();
    void setLosses(int inputLosses);
    void getRoster();
    void ListToVector();
    void setId(int id);
    int getID();
    bool hasPlayer(int id);
    void debugRoster();
    QList<Player*> returnRoster();
    QVector<Player*> getPlayers();

    void updateRoster(QList<int> add, QList<int> rem);

private:
    QString name;
    QList<Player *> roster;
    QVector<Player*> team_players;

    int wins;
    int losses;
    int id;

};

#endif // TEAM_H
